package com.dbq.fast.business.main.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by sunkai on 2017/10/30.
 */

public class VpnNode implements Serializable {

    private String airDropBody;
    private int airDropState;
    private String airDropUrl;
    private String server;
    private String server_port;
    private String password;
    private String method;
    private String ip;
    private String userServiceName;
    private long userSetMealAvailableTime;
    private String userSetMealAvailableDataTraffic;
    private int isVist;//当前是否没有VIP套餐（或VIP套餐过期） 1是的 0 不是
    private List<String> dns;
    private List<String> proxy_domain;
    private int isFirstConnect; //1:是的 0:不是
    private int purchaseState; //0:未消费,1:应用内付费,2:应用内订阅
    private int autoRenewing; //0:取消 1:续费

    public String getAirDropBody() {
        return airDropBody;
    }

    public void setAirDropBody(String airDropBody) {
        this.airDropBody = airDropBody;
    }

    /**
     * 是否显示空投按钮
     * 0:关  ,1 : 开
     *
     * @return
     */
    public boolean isShow() {
        return airDropState == 1;
    }

    public void setAirDropState(int airDropState) {
        this.airDropState = airDropState;
    }

    public String getAirDropUrl() {
        return airDropUrl;
    }

    public void setAirDropUrl(String airDropUrl) {
        this.airDropUrl = airDropUrl;
    }

    public String getServer() {
        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }

    public String getServer_port() {
        return server_port;
    }

    public void setServer_port(String server_port) {
        this.server_port = server_port;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUserServiceName() {
        return userServiceName;
    }

    public void setUserServiceName(String userServiceName) {
        this.userServiceName = userServiceName;
    }

    public long getUserSetMealAvailableTime() {
        return userSetMealAvailableTime;
    }

    public void setUserSetMealAvailableTime(long userSetMealAvailableTime) {
        this.userSetMealAvailableTime = userSetMealAvailableTime;
    }

    public String getUserSetMealAvailableDataTraffic() {
        return userSetMealAvailableDataTraffic;
    }

    public void setUserSetMealAvailableDataTraffic(String userSetMealAvailableDataTraffic) {
        this.userSetMealAvailableDataTraffic = userSetMealAvailableDataTraffic;
    }

    public int getIsVist() {
        return isVist;
    }

    public void setIsVist(int isVist) {
        this.isVist = isVist;
    }

    public List<String> getDns() {
        return dns;
    }

    public void setDns(List<String> dns) {
        this.dns = dns;
    }

    public List<String> getProxy_domain() {
        return proxy_domain;
    }

    public void setProxy_domain(List<String> proxy_domain) {
        this.proxy_domain = proxy_domain;
    }

    public int getIsFirstConnect() {
        return isFirstConnect;
    }

    public void setIsFirstConnect(int isFirstConnect) {
        this.isFirstConnect = isFirstConnect;
    }

    public int getPurchaseState() {
        return purchaseState;
    }

    public void setPurchaseState(int purchaseState) {
        this.purchaseState = purchaseState;
    }

    public int getAutoRenewing() {
        return autoRenewing;
    }

    public void setAutoRenewing(int autoRenewing) {
        this.autoRenewing = autoRenewing;
    }

    @Override
    public String toString() {
        return "VpnNode{" +
                "airDropState=" + airDropState +
                ", airDropUrl='" + airDropUrl + '\'' +
                ", server='" + server + '\'' +
                ", server_port='" + server_port + '\'' +
                ", password='" + password + '\'' +
                ", method='" + method + '\'' +
                ", ip='" + ip + '\'' +
                ", userServiceName='" + userServiceName + '\'' +
                ", userSetMealAvailableTime=" + userSetMealAvailableTime +
                ", userSetMealAvailableDataTraffic='" + userSetMealAvailableDataTraffic + '\'' +
                ", isVist=" + isVist +
                ", dns=" + dns +
                ", proxy_domain=" + proxy_domain +
                ", isFirstConnect=" + isFirstConnect +
                ", purchaseState=" + purchaseState +
                ", autoRenewing=" + autoRenewing +
                '}';
    }
}
